home *** CD-ROM | disk | FTP | other *** search
- 108
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- FileAge
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows and Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baFileAge returns the date of a file in seconds.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baFileAge( FileName )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String
- --- RECORDSEPARATOR ---
- FileName is the file to get the age of.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- Returns the age of the file in seconds.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set Age = baFileAge( "student.dat" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- Age := baFileAge( "student.dat" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- The number returned is the number of seconds since an arbitrary date. The
- --- RECORDSEPARATOR ---
- number means little by itself, but can be used to compare the dates of two files.
- --- RECORDSEPARATOR ---
- The file with higher number is the newer file. For example:
- --- RECORDSEPARATOR ---
- if baFileAge( "c:\\data\\student.dat"" ) > baFileAge( "a:\\student.dat" ) then
- --- RECORDSEPARATOR ---
- --
- --- RECORDSEPARATOR ---
- file on "C" drive is newer than the one on "A" drive.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- See also:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baFileDate
- --- RECORDSEPARATOR ---
- baFileVersion